/**
 * 
 */
package org.cst.ming.android.barcode;


import org.cst.ming.android.barcode.comminucation.SocketCommunicator;


/**
 * @author Ming
 * 
 */
public final class NetworkUtil
{
	private static final String HOSTNAME = "";
	private static final int PORT = 10086;

	private static SocketCommunicator communicator = null;

	private NetworkUtil()
	{
	}

	public static synchronized SocketCommunicator getUtil()
	{
		if (null == communicator)
		{
			communicator = new SocketCommunicator(HOSTNAME, PORT);
		}
		return communicator;
	}
}
